package cc.avatar.model.rule;

import cc.avatar.model.AccountingEvent;
import cc.avatar.model.PostingRule;
import cc.avatar.model.Carriage;

public class CarriagePR extends PostingRule {

	@Override
	protected double calculateAmount(AccountingEvent evt) {
		Carriage carriage = (Carriage)evt;
		return carriage.getTotalFreight();
	}
}
